require 'rubygems'
require 'parse_tree'

class ParseTreeTranslator
  def initialize(binding)
    @binding = binding
  end
  
  def translate_tree(tree)
    send("_#{expr[0].to_s}".to_sym, tree)
  end
  
  def literal(o)
    case o
    when Hash
      kvs = o.each {|k, v| "#{literal(k)} : literal(v)"}
    end
  end
  
  def _class(expr)
  end
end

ruby_hash = {:x => 1, :y => 2}

# js_hash = {x: 1, y: 2}
